package dome2;

public class Duck extends Animal
        implements ISwimming,IRunning,IFlying {
    public Duck(String name) {
        super(name);
    }

    @Override
    public void fly() {
        System.out.println(this.name + "正在飞翔~~~");
    }

    @Override
    public void run() {
        System.out.println(this.name + "正在跑步~~~");
    }

    @Override
    public void swim() {
        System.out.println(this.name + "正在鸭游~~~");
    }
}
